﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WangMiBusiness.ExtendClass
{
    public static class ExtensionHelper
    {
        /// <summary>
        /// 获取保留2位精度的double
        /// </summary>
        /// <param name="number"></param>
        /// <returns></returns>
        public static double RoundNumber(this double number)
        {
            return Math.Round(number, 2);
        }
    }
}
